package com.wiiss.common.mapper;

import com.wiiss.common.annotation.DataScope;
import com.wiiss.common.domain.AttachmentTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AttachmentTaskMapper {

    // 查询
    AttachmentTask selectById(String taskId);

    @DataScope(deptAlias = "d", userAlias = "u")
    List<AttachmentTask> select(AttachmentTask mcsAttachmentTask);

    // 新增
    int insert(AttachmentTask mcsAttachmentTask);

    // 更新
    void update(AttachmentTask mcsAttachmentTask);

    // 查询过期的附件
    List<AttachmentTask> selectExpire(@Param("days") String days);

    // 设置过期状态
    void setExpire(List<String> ids);
}
